.class public Lcom/instagram/android/maps/PhotoMapsActivity;
.super Lcom/instagram/android/activity/u;
.source "PhotoMapsActivity.java"


# static fields
.field private static x:Lcom/instagram/android/maps/PhotoMapsActivity;


# instance fields
.field private a:Lcom/instagram/android/maps/ui/n;

.field private b:Lcom/google/android/maps/MapController;

.field private c:Lcom/instagram/android/maps/b/b;

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/maps/ai;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lcom/instagram/android/maps/b/i;

.field private f:I

.field private g:Landroid/os/Handler;

.field private h:Lcom/instagram/android/maps/ui/r;

.field private i:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/maps/b/f;",
            ">;"
        }
    .end annotation
.end field

.field private j:Lcom/instagram/android/widget/ab;

.field private k:Lcom/instagram/android/maps/ui/b;

.field private l:Lcom/instagram/android/maps/ai;

.field private m:Lcom/instagram/android/maps/ui/a/b;

.field private n:Lcom/instagram/android/maps/e/d;

.field private o:Lcom/instagram/android/maps/e/e;

.field private p:Z

.field private q:Z

.field private r:Landroid/content/BroadcastReceiver;

.field private s:Landroid/content/BroadcastReceiver;

.field private t:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Landroid/content/IntentFilter;",
            ">;"
        }
    .end annotation
.end field

.field private u:Landroid/content/BroadcastReceiver;

.field private v:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation
.end field

.field private w:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 72
    invoke-direct {p0}, Lcom/instagram/android/activity/u;-><init>()V

    .line 83
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    .line 85
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    .line 86
    const/4 v0, -0x1

    iput v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->f:I

    .line 87
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->g:Landroid/os/Handler;

    .line 97
    iput-boolean v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->p:Z

    .line 98
    iput-boolean v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->q:Z

    .line 100
    new-instance v0, Lcom/instagram/android/maps/a;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/a;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->r:Landroid/content/BroadcastReceiver;

    .line 111
    new-instance v0, Lcom/instagram/android/maps/n;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/n;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->s:Landroid/content/BroadcastReceiver;

    .line 121
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->t:Ljava/util/HashMap;

    .line 123
    new-instance v0, Lcom/instagram/android/maps/aa;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/aa;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->u:Landroid/content/BroadcastReceiver;

    .line 149
    iput-boolean v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->w:Z

    .line 1047
    return-void
.end method

.method private a(IDDDD)I
    .locals 10
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1081
    const-wide v0, 0x40b8e30000000000L

    const-wide v2, 0x404ca5dcc63f1412L

    div-double v2, p2, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->sin(D)D

    move-result-wide v2

    const-wide v4, 0x404ca5dcc63f1412L

    div-double v4, p4, v4

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v4

    mul-double/2addr v2, v4

    const-wide v4, 0x404ca5dcc63f1412L

    div-double v4, p2, v4

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v4

    const-wide v6, 0x404ca5dcc63f1412L

    div-double v6, p4, v6

    invoke-static {v6, v7}, Ljava/lang/Math;->cos(D)D

    move-result-wide v6

    mul-double/2addr v4, v6

    const-wide v6, 0x404ca5dcc63f1412L

    div-double v6, p8, v6

    const-wide v8, 0x404ca5dcc63f1412L

    div-double v8, p6, v8

    sub-double/2addr v6, v8

    invoke-static {v6, v7}, Ljava/lang/Math;->cos(D)D

    move-result-wide v6

    mul-double/2addr v4, v6

    add-double/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->acos(D)D

    move-result-wide v2

    mul-double/2addr v0, v2

    .line 1084
    const-wide/high16 v2, 0x4020

    const-wide v4, 0x3ffa504816f0068eL

    mul-double/2addr v0, v4

    mul-int v4, p1, p1

    mul-int/lit8 v4, v4, 0x2

    int-to-double v4, v4

    invoke-static {v4, v5}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v4

    div-double/2addr v0, v4

    invoke-static {v0, v1}, Ljava/lang/Math;->log(D)D

    move-result-wide v0

    const-wide/high16 v4, 0x4000

    invoke-static {v4, v5}, Ljava/lang/Math;->log(D)D

    move-result-wide v4

    div-double/2addr v0, v4

    sub-double v0, v2, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    .line 1086
    cmpl-double v2, p2, p4

    if-nez v2, :cond_0

    cmpl-double v2, p2, p4

    if-nez v2, :cond_0

    .line 1087
    const-wide/high16 v0, 0x4026

    .line 1090
    :cond_0
    double-to-int v0, v0

    return v0
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/b;)Lcom/instagram/android/maps/ui/b;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->k:Lcom/instagram/android/maps/ui/b;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/r;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/r;)Lcom/instagram/android/maps/ui/r;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/widget/ab;)Lcom/instagram/android/widget/ab;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->j:Lcom/instagram/android/widget/ab;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/b/f;)Ljava/util/List;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/f;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method private a(Lcom/instagram/android/maps/b/f;)Ljava/util/List;
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/maps/b/f;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 985
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 986
    invoke-virtual {p1}, Lcom/instagram/android/maps/b/f;->c()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/maps/b/h;

    .line 987
    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->g()Ljava/lang/Comparable;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 989
    :cond_0
    return-object v1
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ai;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/ai;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;Ljava/lang/Runnable;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1, p2, p3}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Ljava/util/List;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->c(Ljava/util/List;)V

    return-void
.end method

.method private a(Lcom/instagram/android/maps/ai;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 451
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/maps/ai;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ai;->a()I

    move-result v0

    invoke-virtual {p1}, Lcom/instagram/android/maps/ai;->a()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 452
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_0

    .line 455
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Lcom/instagram/android/maps/ai;->a()I

    move-result v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ai;->a()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 456
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    .line 459
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/maps/ai;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ai;->a()I

    move-result v0

    invoke-virtual {p1}, Lcom/instagram/android/maps/ai;->a()I

    move-result v1

    if-gt v0, v1, :cond_3

    .line 460
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    if-eqz v0, :cond_3

    .line 461
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    invoke-interface {v0, v2, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 465
    :cond_3
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->l:Lcom/instagram/android/maps/ai;

    .line 466
    return-void
.end method

.method private a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;Ljava/lang/Runnable;)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 756
    new-instance v0, Lcom/google/android/maps/GeoPoint;

    invoke-virtual {p2}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v1

    invoke-virtual {p1}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v2

    add-int/2addr v1, v2

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {p2}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v2

    invoke-virtual {p1}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v3

    add-int/2addr v2, v3

    div-int/lit8 v2, v2, 0x2

    invoke-direct {v0, v1, v2}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 763
    if-eqz p3, :cond_0

    .line 764
    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v1, v0, p3}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;Ljava/lang/Runnable;)V

    .line 768
    :goto_0
    return-void

    .line 766
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v1, v0}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    goto :goto_0
.end method

.method private a(Ljava/util/List;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 548
    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Ljava/util/List;Z)V

    .line 549
    return-void
.end method

.method private a(Ljava/util/List;Z)V
    .locals 10
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;Z)V"
        }
    .end annotation

    .prologue
    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 553
    invoke-static {}, Lcom/instagram/android/maps/b/b;->a()Lcom/instagram/android/maps/b/b;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    .line 554
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->m:Lcom/instagram/android/maps/ui/a/b;

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/ui/n;->setOnPanListener(Lcom/instagram/android/maps/ui/a/b;)V

    .line 556
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    :goto_0
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/instagram/android/maps/b/a;

    .line 557
    iget-object v7, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    new-instance v0, Lcom/instagram/android/maps/b/h;

    invoke-interface {v5}, Lcom/instagram/android/maps/b/a;->b()D

    move-result-wide v1

    invoke-interface {v5}, Lcom/instagram/android/maps/b/a;->c()D

    move-result-wide v3

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/maps/b/h;-><init>(DDLjava/lang/Comparable;)V

    invoke-virtual {v7, v0}, Lcom/instagram/android/maps/b/b;->a(Lcom/instagram/android/maps/b/h;)Z

    goto :goto_0

    .line 560
    :cond_0
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    .line 563
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->g()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 564
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V

    .line 565
    iput-object p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    .line 566
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    invoke-direct {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->b(Ljava/util/List;)V

    .line 568
    :cond_1
    invoke-direct {p0, v9}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Z)V

    .line 569
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->l()V

    .line 571
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_2

    .line 572
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->g()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 573
    if-eqz p2, :cond_2

    .line 574
    new-instance v0, Lcom/instagram/ui/a/a;

    sget v1, Lcom/facebook/ax;->popup_photo_maps_empty_map_intro:I

    sget v2, Lcom/facebook/bb;->IgDialogFull:I

    invoke-direct {v0, p0, v1, v2}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;II)V

    sget v1, Lcom/facebook/ba;->ok:I

    new-instance v2, Lcom/instagram/android/maps/i;

    invoke-direct {v2, p0}, Lcom/instagram/android/maps/i;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    .line 584
    new-instance v1, Lcom/instagram/android/maps/j;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/j;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 591
    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 622
    :cond_2
    :goto_1
    return-void

    .line 594
    :cond_3
    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    .line 595
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/instagram/service/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;

    .line 598
    const/4 v1, 0x0

    .line 600
    if-eqz v0, :cond_5

    .line 601
    const-string v1, "@%s"

    new-array v2, v9, [Ljava/lang/Object;

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v2, v8

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 604
    :goto_2
    if-eqz v0, :cond_4

    .line 605
    sget v1, Lcom/facebook/ba;->user_has_no_geotagged_photos:I

    new-array v2, v9, [Ljava/lang/Object;

    aput-object v0, v2, v8

    invoke-virtual {p0, v1, v2}, Lcom/instagram/android/maps/PhotoMapsActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 610
    :goto_3
    new-instance v1, Lcom/instagram/ui/a/a;

    invoke-direct {v1, p0}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    .line 611
    invoke-virtual {v1, v0}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    .line 612
    sget v0, Lcom/facebook/ba;->return_to_profile:I

    new-instance v2, Lcom/instagram/android/maps/k;

    invoke-direct {v2, p0}, Lcom/instagram/android/maps/k;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v1, v0, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    .line 619
    invoke-virtual {v1}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    goto :goto_1

    .line 607
    :cond_4
    sget v0, Lcom/facebook/ba;->could_not_load_photo_map_information:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_3

    :cond_5
    move-object v0, v1

    goto :goto_2
.end method

.method private a(Z)V
    .locals 17
    .parameter

    .prologue
    .line 773
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    if-nez v1, :cond_1

    .line 938
    :cond_0
    :goto_0
    return-void

    .line 777
    :cond_1
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    if-nez v1, :cond_4

    .line 778
    invoke-static {}, Lcom/instagram/android/maps/b/i;->d()Lcom/instagram/android/maps/b/i;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    .line 796
    :cond_2
    :goto_1
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getZoomLevel()I

    move-result v1

    move-object/from16 v0, p0

    iget v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->f:I

    if-le v1, v2, :cond_8

    const/4 v1, 0x1

    move v3, v1

    .line 798
    :goto_2
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getZoomLevel()I

    move-result v1

    move-object/from16 v0, p0

    iput v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->f:I

    .line 800
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v8

    .line 801
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .line 803
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getProjection()Lcom/google/android/maps/Projection;

    move-result-object v10

    .line 805
    invoke-virtual/range {p0 .. p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/facebook/au;->clustering_distance:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 806
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    invoke-virtual {v2, v4, v1, v10}, Lcom/instagram/android/maps/b/b;->a(Lcom/instagram/android/maps/b/i;ILcom/google/android/maps/Projection;)Ljava/util/ArrayList;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    .line 808
    const-string v1, "PhotoMap"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Clusters: "

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 810
    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v5

    .line 812
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :goto_3
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_a

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/maps/b/f;

    .line 814
    new-instance v11, Lcom/instagram/android/maps/ui/al;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual/range {p0 .. p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v11, v1, v2, v4}, Lcom/instagram/android/maps/ui/al;-><init>(Lcom/instagram/android/maps/b/f;Lcom/instagram/android/maps/ui/n;Landroid/content/Context;)V

    .line 816
    new-instance v2, Lcom/instagram/android/maps/r;

    move-object/from16 v0, p0

    invoke-direct {v2, v0, v11}, Lcom/instagram/android/maps/r;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/al;)V

    invoke-virtual {v11, v2}, Lcom/instagram/android/maps/ui/al;->a(Lcom/instagram/android/maps/ui/a/c;)V

    .line 842
    new-instance v2, Lcom/instagram/android/maps/s;

    move-object/from16 v0, p0

    invoke-direct {v2, v0, v11}, Lcom/instagram/android/maps/s;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/al;)V

    invoke-virtual {v11, v2}, Lcom/instagram/android/maps/ui/al;->a(Lcom/instagram/android/maps/ui/a/a;)V

    .line 885
    const/4 v4, 0x0

    .line 887
    invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v12

    :cond_3
    invoke-interface {v12}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_10

    invoke-interface {v12}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/google/android/maps/Overlay;

    .line 888
    instance-of v13, v2, Lcom/instagram/android/maps/ui/al;

    if-eqz v13, :cond_3

    .line 889
    check-cast v2, Lcom/instagram/android/maps/ui/al;

    .line 890
    invoke-virtual {v1}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v13

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v14

    invoke-virtual {v14}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v14

    invoke-virtual {v13, v14}, Lcom/instagram/android/maps/b/h;->a(Lcom/instagram/android/maps/b/h;)Z

    move-result v13

    if-eqz v13, :cond_3

    .line 898
    :goto_4
    if-eqz v2, :cond_9

    .line 899
    iput-wide v5, v2, Lcom/instagram/android/maps/ui/al;->a:J

    .line 900
    invoke-virtual {v2, v1}, Lcom/instagram/android/maps/ui/al;->a(Lcom/instagram/android/maps/b/f;)V

    .line 901
    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/al;->d()V

    goto :goto_3

    .line 780
    :cond_4
    if-nez p1, :cond_6

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getZoomLevel()I

    move-result v1

    const/4 v2, 0x5

    if-gt v1, v2, :cond_6

    .line 781
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/i;->e()Z

    move-result v1

    if-nez v1, :cond_5

    .line 782
    invoke-static {}, Lcom/instagram/android/maps/b/i;->d()Lcom/instagram/android/maps/b/i;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    goto/16 :goto_1

    .line 783
    :cond_5
    move-object/from16 v0, p0

    iget v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->f:I

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/n;->getZoomLevel()I

    move-result v2

    if-ne v1, v2, :cond_2

    goto/16 :goto_0

    .line 787
    :cond_6
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getMapCenter()Lcom/google/android/maps/GeoPoint;

    move-result-object v1

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/n;->getLatitudeSpan()I

    move-result v2

    move-object/from16 v0, p0

    iget-object v3, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v3}, Lcom/instagram/android/maps/ui/n;->getLongitudeSpan()I

    move-result v3

    invoke-static {v1, v2, v3}, Lcom/instagram/android/maps/b/i;->a(Lcom/google/android/maps/GeoPoint;II)Lcom/instagram/android/maps/b/i;

    move-result-object v1

    .line 788
    if-nez p1, :cond_7

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    invoke-virtual {v2, v1}, Lcom/instagram/android/maps/b/i;->b(Lcom/instagram/android/maps/b/i;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 789
    :cond_7
    const-wide/high16 v2, 0x4000

    invoke-virtual {v1, v2, v3}, Lcom/instagram/android/maps/b/i;->a(D)Lcom/instagram/android/maps/b/i;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->e:Lcom/instagram/android/maps/b/i;

    goto/16 :goto_1

    .line 796
    :cond_8
    const/4 v1, 0x0

    move v3, v1

    goto/16 :goto_2

    .line 903
    :cond_9
    invoke-virtual {v9, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_3

    .line 908
    :cond_a
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    long-to-double v4, v5

    invoke-virtual {v1, v4, v5}, Lcom/instagram/android/maps/ui/n;->a(D)V

    .line 910
    if-eqz v3, :cond_e

    .line 911
    invoke-virtual {v9}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_b
    :goto_5
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_e

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/maps/ui/al;

    .line 912
    const-wide/16 v4, 0x0

    .line 913
    const/4 v3, 0x0

    .line 914
    invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v12

    :goto_6
    invoke-interface {v12}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_d

    invoke-interface {v12}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/google/android/maps/Overlay;

    .line 915
    instance-of v6, v2, Lcom/instagram/android/maps/ui/al;

    if-eqz v6, :cond_f

    .line 916
    check-cast v2, Lcom/instagram/android/maps/ui/al;

    .line 917
    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v6

    invoke-virtual {v6}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v6

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v7

    invoke-virtual {v7}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/instagram/android/maps/b/h;->a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;)D

    move-result-wide v6

    .line 918
    const-wide v13, 0x415312d000000000L

    cmpg-double v13, v6, v13

    if-gez v13, :cond_f

    if-eqz v3, :cond_c

    cmpg-double v13, v6, v4

    if-gez v13, :cond_f

    :cond_c
    move-wide v3, v6

    :goto_7
    move-wide v15, v3

    move-wide v4, v15

    move-object v3, v2

    .line 923
    goto :goto_6

    .line 925
    :cond_d
    if-eqz v3, :cond_b

    .line 926
    invoke-virtual {v3}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v2

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v4

    invoke-static {v2, v4, v10}, Lcom/instagram/android/maps/b/h;->a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;Lcom/google/android/maps/Projection;)D

    move-result-wide v4

    .line 927
    const-wide/high16 v6, 0x4079

    cmpg-double v2, v4, v6

    if-gez v2, :cond_b

    .line 928
    invoke-virtual {v3}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v2

    iput-object v2, v1, Lcom/instagram/android/maps/ui/al;->d:Lcom/instagram/android/maps/b/h;

    goto :goto_5

    .line 935
    :cond_e
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1, v9}, Lcom/instagram/android/maps/ui/n;->a(Ljava/util/Collection;)V

    .line 936
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->invalidate()V

    goto/16 :goto_0

    :cond_f
    move-object v2, v3

    move-wide v15, v4

    move-wide v3, v15

    goto :goto_7

    :cond_10
    move-object v2, v4

    goto/16 :goto_4
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/b/f;Lcom/instagram/android/maps/ui/al;)Z
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/f;Lcom/instagram/android/maps/ui/al;)Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lcom/instagram/android/maps/PhotoMapsActivity;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    iput-boolean p1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->q:Z

    return p1
.end method

.method private a(Lcom/instagram/android/maps/b/f;Lcom/instagram/android/maps/ui/al;)Z
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 941
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/f;)Ljava/util/List;

    move-result-object v0

    .line 943
    invoke-direct {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->c(Ljava/util/List;)V

    .line 944
    new-instance v1, Lcom/instagram/android/maps/ui/r;

    iget-object v2, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-direct {v1, p0, v0, v2, p2}, Lcom/instagram/android/maps/ui/r;-><init>(Landroid/app/Activity;Ljava/util/List;Landroid/view/View;Lcom/instagram/android/maps/ui/al;)V

    iput-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    .line 945
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    const/16 v2, 0x33

    invoke-virtual {v0, v1, v2, v3, v3}, Lcom/instagram/android/maps/ui/r;->showAtLocation(Landroid/view/View;III)V

    .line 946
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    new-instance v1, Lcom/instagram/android/maps/x;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/x;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/ui/r;->a(Ljava/lang/Runnable;)V

    .line 955
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    new-instance v1, Lcom/instagram/android/maps/y;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/y;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/ui/r;->a(Lcom/instagram/android/maps/ui/i;)V

    .line 966
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->h()V

    .line 967
    const/4 v0, 0x1

    return v0
.end method

.method public static a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;)Z
    .locals 11
    .parameter
    .parameter

    .prologue
    const/4 v9, 0x1

    const/4 v10, 0x0

    .line 736
    new-array v8, v9, [F

    .line 737
    invoke-virtual {p1}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v0

    invoke-virtual {p1}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v2

    invoke-virtual {p1}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v4

    invoke-virtual {p0}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v6

    invoke-static/range {v0 .. v8}, Landroid/location/Location;->distanceBetween(DDDD[F)V

    .line 738
    aget v0, v8, v10

    .line 739
    const-string v1, "PhotoMap"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Distance = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 740
    const/high16 v1, 0x43fa

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    move v0, v9

    :goto_0
    return v0

    :cond_0
    move v0, v10

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->i()V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/maps/PhotoMapsActivity;Ljava/util/List;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Ljava/util/List;)V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/maps/PhotoMapsActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Z)V

    return-void
.end method

.method private b(Ljava/util/List;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 629
    new-instance v0, Lcom/instagram/android/maps/l;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/l;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->n:Lcom/instagram/android/maps/e/d;

    .line 643
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->n:Lcom/instagram/android/maps/e/d;

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->a(Lcom/instagram/android/maps/e/d;)V

    .line 647
    new-instance v0, Lcom/instagram/android/maps/m;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/m;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->o:Lcom/instagram/android/maps/e/e;

    .line 667
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->o:Lcom/instagram/android/maps/e/e;

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->a(Lcom/instagram/android/maps/e/e;)V

    .line 668
    return-void
.end method

.method private b(Z)V
    .locals 1
    .parameter

    .prologue
    .line 1094
    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/instagram/android/widget/s;->a(ZLandroid/view/View;)V

    .line 1095
    return-void
.end method

.method public static c()Lcom/instagram/android/maps/PhotoMapsActivity;
    .locals 1

    .prologue
    .line 1044
    sget-object v0, Lcom/instagram/android/maps/PhotoMapsActivity;->x:Lcom/instagram/android/maps/PhotoMapsActivity;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/maps/PhotoMapsActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/maps/PhotoMapsActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 72
    invoke-direct {p0, p1}, Lcom/instagram/android/maps/PhotoMapsActivity;->b(Z)V

    return-void
.end method

.method private c(Ljava/util/List;)V
    .locals 5
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 993
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    .line 994
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 995
    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/j/l;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 998
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->t:Ljava/util/HashMap;

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/IntentFilter;

    .line 1000
    if-nez v0, :cond_0

    .line 1001
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 1002
    iget-object v4, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->t:Ljava/util/HashMap;

    invoke-virtual {v4, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1003
    iget-object v3, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->u:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v3, v0}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    goto :goto_0

    .line 1006
    :cond_1
    return-void
.end method

.method static synthetic d(Lcom/instagram/android/maps/PhotoMapsActivity;)Ljava/util/HashMap;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->t:Ljava/util/HashMap;

    return-object v0
.end method

.method private e()Ljava/lang/String;
    .locals 1

    .prologue
    .line 301
    invoke-static {}, Lcom/instagram/i/a;->a()Lcom/instagram/i/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/i/b;->a()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->l()V

    return-void
.end method

.method static synthetic f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    return-object v0
.end method

.method private f()V
    .locals 6

    .prologue
    const/4 v2, 0x0

    .line 313
    .line 315
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    .line 317
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    move-object v1, v2

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/maps/b/f;

    .line 318
    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/f;->c()Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/f;->c()Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-le v4, v5, :cond_5

    :cond_0
    :goto_1
    move-object v1, v0

    .line 321
    goto :goto_0

    .line 322
    :cond_1
    if-eqz v1, :cond_4

    .line 323
    invoke-virtual {v1}, Lcom/instagram/android/maps/b/f;->b()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->a()Lcom/google/android/maps/GeoPoint;

    move-result-object v2

    move-object v4, v2

    .line 327
    :goto_2
    if-nez v4, :cond_2

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/b;->e()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/b;->d()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 328
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/b;->e()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/b;->d()Lcom/instagram/android/maps/b/h;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v1

    add-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    .line 329
    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/b;->e()Lcom/instagram/android/maps/b/h;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v1

    iget-object v2, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    invoke-virtual {v2}, Lcom/instagram/android/maps/b/b;->d()Lcom/instagram/android/maps/b/h;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v2

    add-int/2addr v1, v2

    div-int/lit8 v1, v1, 0x2

    .line 330
    new-instance v4, Lcom/google/android/maps/GeoPoint;

    invoke-direct {v4, v0, v1}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 333
    :cond_2
    if-eqz v4, :cond_3

    .line 334
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v0, v4}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    .line 337
    :cond_3
    new-instance v0, Lcom/instagram/android/maps/ai;

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getLatitudeSpan()I

    move-result v2

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getLongitudeSpan()I

    move-result v3

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1}, Lcom/instagram/android/maps/ui/n;->getZoomLevel()I

    move-result v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/maps/ai;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;IILcom/google/android/maps/GeoPoint;I)V

    invoke-direct {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/ai;)V

    .line 338
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->w:Z

    .line 339
    return-void

    :cond_4
    move-object v4, v2

    goto :goto_2

    :cond_5
    move-object v0, v1

    goto :goto_1
.end method

.method static synthetic g(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->j()V

    return-void
.end method

.method private g()Z
    .locals 2

    .prologue
    .line 342
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method static synthetic h(Lcom/instagram/android/maps/PhotoMapsActivity;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->g:Landroid/os/Handler;

    return-object v0
.end method

.method private h()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/16 v1, 0x8

    .line 347
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/r;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 348
    sget v0, Lcom/facebook/aw;->layout_maps_button_back:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 349
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 350
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_cancel:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 351
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_done:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 352
    sget v0, Lcom/facebook/aw;->layout_maps_button_zoom:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 353
    sget v0, Lcom/facebook/aw;->layout_maps_button_grid:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 380
    :goto_0
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->j()V

    .line 381
    return-void

    .line 355
    :cond_0
    sget v0, Lcom/facebook/aw;->layout_maps_button_zoom:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 356
    sget v0, Lcom/facebook/aw;->layout_maps_button_grid:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 358
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/e/a;->b()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 359
    sget v0, Lcom/facebook/aw;->layout_maps_button_back:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 360
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 362
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/e/a;->g()I

    move-result v0

    if-lez v0, :cond_1

    .line 363
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_cancel:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 367
    :goto_1
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_done:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 365
    :cond_1
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_cancel:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 369
    :cond_2
    sget v0, Lcom/facebook/aw;->layout_maps_button_back:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 371
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->c:Lcom/instagram/android/maps/b/b;

    if-eqz v0, :cond_3

    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->g()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 372
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 376
    :goto_2
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_cancel:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 377
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_done:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    .line 374
    :cond_3
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2
.end method

.method static synthetic i(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/widget/ab;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->j:Lcom/instagram/android/widget/ab;

    return-object v0
.end method

.method private i()V
    .locals 2

    .prologue
    .line 419
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/e/a;->j()Ljava/util/List;

    move-result-object v0

    .line 420
    if-eqz v0, :cond_2

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    .line 421
    invoke-direct {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Ljava/util/List;)V

    .line 423
    iget-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->w:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->p:Z

    if-eqz v0, :cond_1

    .line 424
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f()V

    .line 440
    :cond_1
    :goto_0
    return-void

    .line 426
    :cond_2
    iget-boolean v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->p:Z

    if-eqz v1, :cond_3

    .line 427
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->p:Z

    .line 429
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->g:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/maps/f;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/f;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    .line 435
    :cond_3
    if-eqz v0, :cond_1

    .line 438
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-direct {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Ljava/util/List;)V

    goto :goto_0
.end method

.method private j()V
    .locals 2

    .prologue
    .line 469
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 470
    sget v0, Lcom/facebook/aw;->layout_maps_button_zoom:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 474
    :goto_0
    return-void

    .line 472
    :cond_0
    sget v0, Lcom/facebook/aw;->layout_maps_button_zoom:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0
.end method

.method static synthetic j(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->k()V

    return-void
.end method

.method static synthetic k(Lcom/instagram/android/maps/PhotoMapsActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    return-object v0
.end method

.method private k()V
    .locals 3

    .prologue
    .line 496
    sget v0, Lcom/facebook/aw;->layout_maps_button_retry:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 498
    new-instance v0, Lcom/instagram/android/d/e/i;

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->b()Landroid/support/v4/app/aj;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/maps/g;

    invoke-direct {v2, p0}, Lcom/instagram/android/maps/g;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-direct {v0, p0, v1, v2}, Lcom/instagram/android/d/e/i;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/d/e/i;->a(Ljava/lang/String;)V

    .line 545
    return-void
.end method

.method static synthetic l(Lcom/instagram/android/maps/PhotoMapsActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->d:Ljava/util/List;

    return-object v0
.end method

.method private l()V
    .locals 4

    .prologue
    .line 971
    const/4 v1, 0x0

    .line 973
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 974
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/maps/b/f;

    .line 975
    iget-object v3, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/instagram/android/maps/ui/n;->a(Lcom/instagram/android/maps/b/h;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 976
    const/4 v0, 0x1

    .line 981
    :goto_0
    sget v1, Lcom/facebook/aw;->layout_maps_button_grid:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/View;->setEnabled(Z)V

    .line 982
    return-void

    :cond_1
    move v0, v1

    goto :goto_0
.end method

.method static synthetic m(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f()V

    return-void
.end method

.method static synthetic n(Lcom/instagram/android/maps/PhotoMapsActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->g()Z

    move-result v0

    return v0
.end method

.method static synthetic o(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->h()V

    return-void
.end method

.method static synthetic p(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/google/android/maps/MapController;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    return-object v0
.end method

.method static synthetic q(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/b;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->k:Lcom/instagram/android/maps/ui/b;

    return-object v0
.end method

.method static synthetic r(Lcom/instagram/android/maps/PhotoMapsActivity;)Landroid/content/BroadcastReceiver;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->r:Landroid/content/BroadcastReceiver;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    .line 305
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->p:Z

    .line 306
    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/j;

    invoke-virtual {v0}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/instagram/android/maps/d/m;->a(Ljava/lang/String;Landroid/support/v4/app/r;)V

    .line 309
    return-void
.end method

.method public a(Lcom/instagram/android/maps/b/f;Z)Z
    .locals 13
    .parameter
    .parameter

    .prologue
    const-wide v5, 0x3fef5c28f5c28f5cL

    .line 677
    invoke-virtual {p1}, Lcom/instagram/android/maps/b/f;->e()Lcom/instagram/android/maps/b/h;

    move-result-object v0

    .line 678
    invoke-virtual {p1}, Lcom/instagram/android/maps/b/f;->d()Lcom/instagram/android/maps/b/h;

    move-result-object v1

    .line 679
    invoke-virtual {p1}, Lcom/instagram/android/maps/b/f;->f()Lcom/instagram/android/maps/b/h;

    move-result-object v10

    .line 680
    new-instance v11, Lcom/google/android/maps/GeoPoint;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v2

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v3

    add-int/2addr v2, v3

    div-int/lit8 v2, v2, 0x2

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v3

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v4

    add-int/2addr v3, v4

    div-int/lit8 v3, v3, 0x2

    invoke-direct {v11, v2, v3}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 685
    invoke-static {v0, v1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/h;Lcom/instagram/android/maps/b/h;)Z

    move-result v12

    .line 687
    if-eqz v12, :cond_0

    .line 689
    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v2

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v4

    invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(DD)D

    move-result-wide v2

    .line 690
    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v4

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->c()D

    move-result-wide v6

    invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->max(DD)D

    move-result-wide v4

    .line 691
    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v6

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v8

    invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->min(DD)D

    move-result-wide v6

    .line 692
    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v8

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->f()D

    move-result-wide v0

    invoke-static {v8, v9, v0, v1}, Ljava/lang/Math;->max(DD)D

    move-result-wide v8

    .line 694
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getWidth()I

    move-result v1

    move-object v0, p0

    invoke-direct/range {v0 .. v9}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(IDDDD)I

    move-result v0

    .line 697
    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v10}, Lcom/instagram/android/maps/b/h;->a()Lcom/google/android/maps/GeoPoint;

    move-result-object v2

    new-instance v3, Lcom/instagram/android/maps/o;

    invoke-direct {v3, p0, v0, v11}, Lcom/instagram/android/maps/o;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;ILcom/google/android/maps/GeoPoint;)V

    invoke-virtual {v1, v2, v3}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;Ljava/lang/Runnable;)V

    .line 732
    :goto_0
    return v12

    .line 720
    :cond_0
    if-eqz p2, :cond_1

    .line 721
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v0, v11}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    goto :goto_0

    .line 723
    :cond_1
    iget-object v2, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v2, v11}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 724
    iget-object v2, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v3

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->d()I

    move-result v4

    sub-int/2addr v3, v4

    int-to-double v3, v3

    mul-double/2addr v3, v5

    double-to-int v3, v3

    invoke-virtual {v0}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v0

    invoke-virtual {v1}, Lcom/instagram/android/maps/b/h;->e()I

    move-result v1

    sub-int/2addr v0, v1

    int-to-double v0, v0

    mul-double/2addr v0, v5

    double-to-int v0, v0

    invoke-virtual {v2, v3, v0}, Lcom/google/android/maps/MapController;->zoomToSpan(II)V

    goto :goto_0
.end method

.method public b()Landroid/support/v4/app/aj;
    .locals 1

    .prologue
    .line 1040
    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/j;

    invoke-virtual {v0}, Landroid/support/v4/app/j;->g()Landroid/support/v4/app/aj;

    move-result-object v0

    return-object v0
.end method

.method public d()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 1098
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    return-object v0
.end method

.method protected isRouteDisplayed()Z
    .locals 1

    .prologue
    .line 1036
    const/4 v0, 0x0

    return v0
.end method

.method public onBackPressed()V
    .locals 3

    .prologue
    .line 1127
    const-string v0, "BROADCAST_PHOTOMAPS_BACK_PRESSED"

    invoke-static {v0}, Lcom/instagram/n/d;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1129
    const-string v0, "PhotoMapsActivity"

    const-string v1, "broadcast"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1137
    :goto_0
    return-void

    .line 1130
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/r;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1131
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/r;->a()V

    goto :goto_0

    .line 1133
    :cond_1
    const-string v0, "PhotoMapsActivity"

    const-string v1, "onBackPressed"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1134
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getParent()Landroid/app/Activity;

    move-result-object v1

    const-string v2, "back"

    invoke-interface {v0, v1, v2}, Lcom/instagram/b/c;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 1135
    invoke-super {p0}, Lcom/instagram/android/activity/u;->onBackPressed()V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v3, 0x1

    const/4 v2, -0x1

    const/4 v4, 0x0

    .line 154
    invoke-super {p0, p1}, Lcom/instagram/android/activity/u;->onCreate(Landroid/os/Bundle;)V

    .line 155
    sget v0, Lcom/facebook/ax;->layout_maps:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->setContentView(I)V

    .line 159
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->a(Ljava/lang/String;)V

    .line 160
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/e/a;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 161
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/instagram/android/maps/e/a;->a(Z)V

    .line 164
    :cond_0
    new-instance v0, Lcom/instagram/android/maps/ui/n;

    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->e()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/maps/ui/n;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    .line 165
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0, v4}, Lcom/instagram/android/maps/ui/n;->setBuiltInZoomControls(Z)V

    .line 166
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    new-instance v1, Lcom/instagram/android/maps/ab;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/ab;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/ui/n;->setDetachWindowListener(Lcom/instagram/android/maps/ui/q;)V

    .line 174
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0, v3}, Lcom/instagram/android/maps/ui/n;->setClickable(Z)V

    .line 175
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0, v3}, Lcom/instagram/android/maps/ui/n;->setEnabled(Z)V

    .line 176
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 182
    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v1, v0}, Lcom/instagram/android/maps/ui/n;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 183
    sget v0, Lcom/facebook/aw;->layout_maps_container:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 185
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->a:Lcom/instagram/android/maps/ui/n;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    .line 187
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    new-instance v1, Lcom/google/android/maps/GeoPoint;

    const v2, 0x25353cb

    const v3, -0x1dede0d

    invoke-direct {v1, v2, v3}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 188
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->b:Lcom/google/android/maps/MapController;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 190
    new-instance v0, Lcom/instagram/android/maps/ac;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/ac;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    iput-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->m:Lcom/instagram/android/maps/ui/a/b;

    .line 217
    sget v0, Lcom/facebook/aw;->layout_maps_button_back:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/ae;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/ae;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 224
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/af;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/af;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 232
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_cancel:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/ag;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/ag;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 239
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit_done:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/ah;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/ah;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 250
    sget v0, Lcom/facebook/aw;->layout_maps_button_edit:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 252
    sget v0, Lcom/facebook/aw;->layout_maps_button_retry:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/b;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/b;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 259
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->h()V

    .line 261
    sget v0, Lcom/facebook/aw;->layout_maps_button_grid:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/c;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/c;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 276
    sget v0, Lcom/facebook/aw;->layout_maps_button_grid:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setEnabled(Z)V

    .line 278
    sget v0, Lcom/facebook/aw;->layout_maps_button_zoom:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/d;

    invoke-direct {v1, p0}, Lcom/instagram/android/maps/d;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 297
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->k()V

    .line 298
    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .prologue
    .line 1104
    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1105
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->n:Lcom/instagram/android/maps/e/d;

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->b(Lcom/instagram/android/maps/e/d;)V

    .line 1106
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->o:Lcom/instagram/android/maps/e/e;

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->b(Lcom/instagram/android/maps/e/e;)V

    .line 1109
    :cond_0
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->r:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 1110
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->u:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 1113
    const/4 v0, 0x0

    sput-object v0, Lcom/instagram/android/maps/PhotoMapsActivity;->x:Lcom/instagram/android/maps/PhotoMapsActivity;

    .line 1115
    invoke-super {p0}, Lcom/instagram/android/activity/u;->onDestroy()V

    .line 1116
    return-void
.end method

.method protected onPause()V
    .locals 2

    .prologue
    .line 478
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    if-eqz v0, :cond_0

    .line 479
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->h:Lcom/instagram/android/maps/ui/r;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/r;->b()V

    .line 481
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->j:Lcom/instagram/android/widget/ab;

    if-eqz v0, :cond_1

    .line 482
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->j:Lcom/instagram/android/widget/ab;

    invoke-virtual {v0}, Lcom/instagram/android/widget/ab;->dismiss()V

    .line 484
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->k:Lcom/instagram/android/maps/ui/b;

    if-eqz v0, :cond_2

    .line 485
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->k:Lcom/instagram/android/maps/ui/b;

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/b;->dismiss()V

    .line 488
    :cond_2
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->r:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 489
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->s:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 491
    invoke-super {p0}, Lcom/instagram/android/activity/u;->onPause()V

    .line 492
    return-void
.end method

.method protected onResume()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 385
    invoke-super {p0}, Lcom/instagram/android/activity/u;->onResume()V

    .line 388
    sput v4, Lcom/instagram/android/maps/ui/IgAnimatingMapItem;->f:I

    .line 391
    invoke-static {}, Lcom/instagram/android/maps/ui/al;->h()V

    .line 395
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/maps/e/a;->a(Ljava/lang/String;)V

    .line 399
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->g()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 400
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->s:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "com.instagram.android.maps.manager.MapReviewed"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 402
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->i()V

    .line 406
    :cond_0
    iget-boolean v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->q:Z

    if-eqz v0, :cond_1

    .line 407
    iput-boolean v4, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->q:Z

    .line 410
    iget-object v0, p0, Lcom/instagram/android/maps/PhotoMapsActivity;->v:Ljava/util/List;

    invoke-direct {p0, v0, v4}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Ljava/util/List;Z)V

    .line 411
    invoke-direct {p0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f()V

    .line 415
    :cond_1
    sput-object p0, Lcom/instagram/android/maps/PhotoMapsActivity;->x:Lcom/instagram/android/maps/PhotoMapsActivity;

    .line 416
    return-void
.end method
